 <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>华夏医院在线预约诊疗服务平台</title>
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" href="css/glider.min.css">
  <link rel="stylesheet" href="css/bootstrap-datepicker.min.css">
  <link rel="stylesheet" href="css/jquery-confirm.min.css">
  <link rel="stylesheet" href="https://at.alicdn.com/t/font_1205629_qkvn3s9pbk.css">

  <!-- <link rel="stylesheet" href="/public/css/lib/material-icons.css">
  <link rel="stylesheet" href="/public/css/lib/bootstrap-material-design.min.css" > -->

  <link rel="stylesheet" href="css/global.css">

  
  <link rel="stylesheet" href="css/login.css">
  
</head>

<body>
  
    <div class="login-box" id="wrap">
    <div class="login-container clearfix">
      <div class="login-left float-left">
        <script src="./static/js/5ebe54d847b37b28d9b58093.js"></script>
      </div>
      <div class="login-right float-left">
<div class="login-title">
  <span class="active">华夏医院在线平台登录</span>
</div>
        <form action="./doctorlist.html" method="post">
<div class="login-content">
  <div class="login-item">
    <div class="login-item-name">账号</div>
    <div class="login-item-ipt">
      <input type="text" class="form-control username-ipt" v-model="Doctor.tel" name="tel" placeholder="请输入手机号或身份证号">
    </div>
  </div>
  <div class="login-item">
    <div class="login-item-name">密码</div>
    <div class="login-item-ipt">
      <input class="form-control password-ipt" v-model="Doctor.password" name="pwd" placeholder="请输入密码" type="password">
    </div>
  </div>

  <div class="login-auto">
    <input type="checkbox" id="autoLogin">
    <label for="autoLogin">自动登录</label>
    <a href="/forget_pwd" style="color: #2f2f2f;">忘记密码</a>
  </div>
  <div style="margin-top: 20px;">
    <input type="button" class="btn btn-success btn-block"@click="login" id="login-btn" type="submit" value="登 录"></button>
  </div>
</div>
        </form>
</div>
</div>
</div>
  


<script src="js/jquery.js"></script>
<script src="js/js.cookie.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- <script src="/public/js/lib/glider.min.js"></script> -->
<script src="js/glider.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="js/jquery-confirm.min.js"></script>
<script src="js/md5.js"></script>
<script src="js/crypto.js"></script>
<!-- <script src="/public/js/lib/bootstrap-material-design.js" ></script> -->
<!-- <script>$(document).ready(function() { $('body').bootstrapMaterialDesign(); });</script> -->

<script src="js/lodash.js"></script>
<script src="js/global.js"></script>

<script src="js/login.js"></script>
    <script src="/es_healthy/js/vue.js"></script>
    <script src="/es_healthy/js/axios.min.js"></script>
    <script>
      var app = new Vue({
        el:"#wrap",
        data:{
          Doctor:{},
        },
        methods:{
          //用户登陆
          login() {
            //发送登陆请求
            axios.post("http://localhost:8080/es_healthy/doctor/login",this.Doctor).then(res=>{
              if(res.data.state)
              {
                alert(res.data.msg+"点击确定进入主页！");
                sessionStorage.setItem("token",res.data.token);
                sessionStorage.setItem("role","doctor");
                localStorage.setItem("doctor",JSON.stringify(res.data.doctor));
                location.href="/es_healthy/doctor.html";
              }else
              {
                alert(res.data.msg);
              }
            });
          }

        }

      });
    </script>

</body><!-- <script src="/public/js/lib/jquery.min.js"></script> --></html>